export const useContent = () => {
    const dialogStore = useDialogStore();

    const onClose = () => {
        dialogStore.isScoreLotterySuccessDialogVisible = false;
    };

    const getIcon = () => {
        return (
            _oss_ +
            "images/dialog/score-lottery/icon-" +
            dialogStore.scoreSuccessDialogState.type +
            ".png"
        );
    };

    const getText = () => {
        return `获得${dialogStore.scoreSuccessDialogState.value}${
            dialogStore.scoreSuccessDialogState.type == "vip"
                ? "天基础（Web端）会员体验"
                : "积分"
        }`;
    };

    return {
        getIcon,
        getText,
        onClose,
    };
};
